package com.zhijian.medical.entity.po;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Api(tags = "常规病例-病人医嘱")
public class RoutinePatientYz {

    /**
     * 主键ID
     */
    @ApiModelProperty("主键ID")
    @TableId(type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("申请人")
    private String applyDocker;

    @ApiModelProperty("病人ID")
    private Long patientId;

    @ApiModelProperty("样本ID")
    private Long sampleId;

    public String getYzTypeStr(){
        if (yzType != null){
            if (yzType == 1){
                return "免疫组化";
            }else{
                return "特殊染色";
            }
        }
        return "特殊染色";
    }

    @ApiModelProperty("医嘱类型 1 免疫组化 2 特殊染色")
    private Integer yzType;

    @ApiModelProperty("记录人")
    private String recorder;

    @ApiModelProperty("医嘱状态 0 未执行 1 已执行 2 暂停")
    private Integer yzState;

    @ApiModelProperty("备注")
    private String note;

    @ApiModelProperty("时间")
    @JSONField(format = "yyyy-MM-dd")
    private Date createTime;

    @ApiModelProperty("病理号")
    @TableField(exist = false)
    private String conventionPathologyNumber;

    @ApiModelProperty("病人名称")
    @TableField(exist = false)
    private String patientName;

    @ApiModelProperty("蜡块号")
    @TableField(exist = false)
    private String number;

    @ApiModelProperty("数量")
    @TableField(exist = false)
    private String takeNumber;

    @ApiModelProperty("标记物")
    @TableField(exist = false)
    private String bjw;
}
